#include "T_FaceScn.h"
#include "T_App.h"

bool T_Face::OnInit( GAF_CBundle* pParam )
{
	m_pimg = GAF_CImage::Create("./res/Image.jpg");
	AddGraphics(m_pimg);

	return true;
}

bool T_Face::OnPreRender( GAF_CGraphics* pGraphics )
{
	if(pGraphics == m_pimg)
	{
		return true;
	}

	return true;
}

bool T_FaceScn::OnInit(GAF_CBundle* pParam)
{
// 	m_TFace.Init();
// 	m_TFace.SetLocation((int)GAF_pTHEWINDOW->GetSize_a().nWidth >> 1, GAF_pTHEWINDOW->GetSize_a().nHeight >> 1);
// 	m_TFace.SetZoom(0.5);
// 	m_TFace.SetAnchor_a(GAF_ANCHOR_VCENTER | GAF_ANCHOR_HCENTER);
// 	AddGraphics(&m_TFace);

	m_pimgClip = GAF_CImage::Create("./res/9AreaTest.bmp");
	m_pimgClip->SetLocation(300, 300);
	m_pimgClip->SetClip(25, 25, 99, 75);
	AddGraphics(m_pimgClip);

	return true;
}

void T_FaceScn::OnKeyDown( ULONG lCode )
{
	ReturnOK();
}
